﻿#include <QApplication>
#include <QTextBrowser>
#include <QDebug>
#include <QTextStream>
#include <QIODevice>
#include <iostream>
#include <memory>

struct d{
    QVector<double>g0;
    QVector<double>g1;
    QVector<double>g2;

    ~d()
    {
        std::cout<< "d destructor" << std::endl;
        std::cout<< g0.size() << std::endl;
        std::cout<< g1.size() << std::endl;
        std::cout<< g2.size() << std::endl;
    }
};

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    std::shared_ptr<d> sd = std::make_shared<d>();
    sd->g0.push_back(1.23);

    std::cout<< sd->g0.size() << std::endl;
    std::cout<< sd->g1.size() << std::endl;
    std::cout<< sd->g2.size() << std::endl;


    //return a.exec();
    return 0;
}
